package com.welsy.stats.business
{
	import mx.rpc.IResponder;
	import mx.rpc.AbstractOperation;
	import mx.controls.Alert;
	import com.adobe.cairngorm.business.ServiceLocator;
	import mx.rpc.soap.WebService;
	import mx.rpc.AsyncToken;
	
	public class GetClassroomTrackingStatsDelegate
	{
		private var responder : IResponder;
		private var service : WebService;
		
		public function GetClassroomTrackingStatsDelegate( responder : IResponder )
		{		
			this.service = ServiceLocator.getInstance().getWebService("AdminResultsService") as WebService;
			this.responder = responder;
		}
		
		public function getClassroomTrackingStats(classroomId : String) : void
		{	
			var o:AbstractOperation = service.getOperation("GetClassroomTrackingStats");
			o.arguments.GetClassroomTrackingStatsRequest.ClassroomId = classroomId;
			
			var token : AsyncToken = service.GetClassroomTrackingStats();
			token.addResponder(responder);
		}
	}

}